package com.atcc.demo.common;

public class PatternValidater {
	//严格非法字符控制
	public  static final String full = "^[^\\[\\]:?\"{}`=^&!*|;$%@\'<>()+\\r\\n,\\\\../ ]*$";
	//标准非法字符控制
	public  static final String normal = "^[^|;$%'<>`()+\\r\\n,\\\\../ *]*$";
	//身份证号码
	public  static final String sfzhm = "^([1-9]\\d{5}(19|20)\\d{2}[01]\\d[0-3]\\d\\d{3}[0-9xX])?$";
	//手机号
	public  static final String sjh = "^(1\\d{10})?$";
	//邮编
	public  static final String yb = "^([0-9]{6})?$";
	//邮箱
	public  static final String email = "^([-\\w]?\\w+([-+.]\\w+)*[-\\w]?@[-\\w]?\\w+([-.]\\w+)*[-\\w]?\\.[-\\w]?\\w+([-.]\\w+)*[-\\w]?)?$";
	//联系电话
	public  static final String lxdh = "^([0-9]{11})?";
	//网址
	public  static final String url = "^http:\\/\\/[A-Za-z0-9-]+\\.[A-Za-z0-9-]+[\\/=\\?%\\-&_~`@[\\-]\\':+!-]*([^<>\\-])*$";
	//英文或数字
	public  static final String englishornum = "^[A-Za-z0-9]*$";
	//英文
	public  static final String english = "^[A-Za-z]*$";
	//中文
	public  static final String chinese = "^[Α-￥]*$";
	//QQ号码[10位以内]
	public  static final String qq = "^([1-9]\\d{4,16})?$";
	//正整数(包含0)
	public  static final String number = "^\\d*$";
	//正整数(不包含0)
	public  static final String num = "^[1-9]\\d*$";
	//整数(正和负)
	public  static final String integer = "^[-\\+]?\\d*$";
	//浮点数(正和负)
	public  static final String Double = "^[-\\+]?\\d+(\\.\\d+)?$";
	//正浮点数(包含0)
	public  static final String posdouble = "^\\d+(\\.\\d+)?$";
	//IP地址
	public  static final String ip = "(25[0-5]|2[0-4]\\d|[0-1]\\d{2}|[1-9]?\\d)\\.(25[0-5]|2[0-4]\\d|[0-1]\\d{2}|[1-9]?\\d)\\.(25[0-5]|2[0-4]\\d|[0-1]\\d{2}|[1-9]?\\d)\\.(25[0-5]|2[0-4]\\d|[0-1]\\d{2}|[1-9]?\\d)";
	//双字节字符(包括汉字)
	public  static final String szjzf = "[^\\x00-\\xff]";
	//日期
	public  static final String rq = "^(\\d{4}-\\d{1,2}-\\d{1,2})?$";
	//年日期
	public  static final String nrq = "^(\\d{4})?$";
	//用户名
	public  static final String yhm = "^[a-zA-Z][\\w-]{7,15}$";
	//个人企业用户
	public  static final String yhzh = "^[a-zA-Z0-9^_\\@\\.x22]{8,48}$";
	//密码
	public  static final String mm = "^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,48}$";
	//6位日期
	public  static final String nyrq = "^(\\d{4}-\\d{1,2})?$";
	//多文本
	public  static final String less = "^[^|$'<>`\\\\*]*$";
	public  static final String least = "^[^|$'<>`]*$";
	//导入日期
	public static final String drrq = "^[12]\\d{3}-(0[1-9]|1[0-2])-([0-2]\\d|3[01])$";
	//导入日期(时分秒)
	public static final String drrq2 = "^\\d{4}-(0\\d|1[0-2])-([0-2]\\d|3[01])( ([01]\\d|2[0-3])\\:[0-5]\\d\\:[0-5]\\d)$";
	//短信内容非法字符控制
	public  static final String dxnr = "^[^|$%'<>`]*$";
	//手机号验证码
	public  static final String sjhyzm = "^(\\d{6})?$";
}
